<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_iwdg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_iwdg.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__iwdg_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_IWDG_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_IWDG_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gae16ce692c641b7b1b254c0ce491e7155">   39</a></span>&#160;<span class="preprocessor">#define IWDG_UNLOCK_KEY                 ((uint32_t)0X55AA6699)   </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#ga7066f25d78e576a4b4f208152ec5f001">   40</a></span>&#160;<span class="preprocessor">#define IWDG_LOCK_KEY                   ((uint32_t)0X55AA6698)   </span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#ga0d361a8ef7fe46ec725fa92551f6b388">   41</a></span>&#160;<span class="preprocessor">#define IWDG_START_ENABLE               ((uint32_t)0x00000055)   </span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gae95952867466428b85c2effbbcb10fba">   42</a></span>&#160;<span class="preprocessor">#define IWDG_RELOAD_REFRESH             ((uint32_t)0x000000AA)   </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#ga4ac8a8499e79c13bdf61d081b9bb8650">   44</a></span>&#160;<span class="preprocessor">#define IWDG_MODE_RESET                 ((uint32_t)0x00000000)   </span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gaaeeb3bdbe0c0d4900a07952016af49f3">   45</a></span>&#160;<span class="preprocessor">#define IWDG_MODE_INT                   ((uint32_t)0x00000010)   </span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gad4dc33399a2a282c37f0691ce9cfc1cf">   46</a></span>&#160;<span class="preprocessor">#define IWDG_MODE_MASK                  ((uint32_t)0x00000010)   </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#ga3cf01bcc2f594d8114c215bb5b18ffab">   48</a></span>&#160;<span class="preprocessor">#define IWDG_IT_DISABLE                 ((uint32_t)0x00000000)   </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gab82749710a795ab8b79a0546353baf62">   49</a></span>&#160;<span class="preprocessor">#define IWDG_IT_ENABLE                  ((uint32_t)0x00000100)   </span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#gace3d64d3d5a653269ad253f5be180519">   50</a></span>&#160;<span class="preprocessor">#define IWDG_IT_MASK                    ((uint32_t)0x00000100)   </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group___i_w_d_g___exported___constants.html#ga82bec72240c652b91baec941eeb8fd0e">   52</a></span>&#160;<span class="preprocessor">#define IWDG_RLR_MAX                    IWDG_RLOAD_IWDGRLOAD     </span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#define IWDG_IT_GOVF                    IWDG_SR_IWDGOVF_Msk</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#define IWDG_ENABLE_WRITE_ACCESS()  \</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">  do {                              \</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">    IWDG-&gt;UNLOCK = IWDG_UNLOCK_KEY; \</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">  } while (0)</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#define IWDG_DISABLE_WRITE_ACCESS() \</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">  do {                              \</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">    IWDG-&gt;UNLOCK = IWDG_LOCK_KEY;   \</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">  } while (0)</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i_w_d_g.html#ga4a2aa88ef15257029e8163e84e9fc23b">IWDG_Init</a>(uint32_t IWDG_Config, FunctionalState NewState);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i_w_d_g.html#ga2fb08178118be6235d12f1bb56151cfe">IWDG_SetReload</a>(uint32_t Reload);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i_w_d_g.html#ga7147ebabdc3fef97f532b171a4e70d49">IWDG_ReloadCounter</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i_w_d_g.html#gaf8d8dd6ada0602470b2cc01e42fa5840">IWDG_Start</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;FlagStatus <a class="code" href="group___i_w_d_g.html#ga1b0d44da803365309374a9cc3fb5bc9d">IWDG_GetITStatus</a>(uint32_t IWDG_IT);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i_w_d_g.html#ga373f5fee873b0cf9a660af97120f42fa">IWDG_ClearITPendingBit</a>(uint32_t IWDG_IT);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__WB32L003_IWDG_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___i_w_d_g_html_ga1b0d44da803365309374a9cc3fb5bc9d"><div class="ttname"><a href="group___i_w_d_g.html#ga1b0d44da803365309374a9cc3fb5bc9d">IWDG_GetITStatus</a></div><div class="ttdeci">FlagStatus IWDG_GetITStatus(uint32_t IWDG_IT)</div><div class="ttdoc">Checks whether the specified IWDG interrupt flag is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:122</div></div>
<div class="ttc" id="group___i_w_d_g_html_ga2fb08178118be6235d12f1bb56151cfe"><div class="ttname"><a href="group___i_w_d_g.html#ga2fb08178118be6235d12f1bb56151cfe">IWDG_SetReload</a></div><div class="ttdeci">void IWDG_SetReload(uint32_t Reload)</div><div class="ttdoc">Sets IWDG Reload value.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:81</div></div>
<div class="ttc" id="group___i_w_d_g_html_ga7147ebabdc3fef97f532b171a4e70d49"><div class="ttname"><a href="group___i_w_d_g.html#ga7147ebabdc3fef97f532b171a4e70d49">IWDG_ReloadCounter</a></div><div class="ttdeci">void IWDG_ReloadCounter(void)</div><div class="ttdoc">Reloads IWDG counter with value defined in the reload register.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:93</div></div>
<div class="ttc" id="group___i_w_d_g_html_ga373f5fee873b0cf9a660af97120f42fa"><div class="ttname"><a href="group___i_w_d_g.html#ga373f5fee873b0cf9a660af97120f42fa">IWDG_ClearITPendingBit</a></div><div class="ttdeci">void IWDG_ClearITPendingBit(uint32_t IWDG_IT)</div><div class="ttdoc">Clears the IWDG's interrupt pending bits.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:145</div></div>
<div class="ttc" id="group___i_w_d_g_html_gaf8d8dd6ada0602470b2cc01e42fa5840"><div class="ttname"><a href="group___i_w_d_g.html#gaf8d8dd6ada0602470b2cc01e42fa5840">IWDG_Start</a></div><div class="ttdeci">void IWDG_Start(void)</div><div class="ttdoc">IWDG starts running.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:108</div></div>
<div class="ttc" id="group___i_w_d_g_html_ga4a2aa88ef15257029e8163e84e9fc23b"><div class="ttname"><a href="group___i_w_d_g.html#ga4a2aa88ef15257029e8163e84e9fc23b">IWDG_Init</a></div><div class="ttdeci">void IWDG_Init(uint32_t IWDG_Config, FunctionalState NewState)</div><div class="ttdoc">Initialize the IWDG according to the specified IWDG_Config.</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.c:45</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
